<?php

class Proveedor extends DataMapper
{
	public $table = 'proveedores';
	public $model = 'proveedor';
	public $has_one = array();
	public $has_many = array('remito');
	
	var $validation = array(
        'nombre' => array(
            'label' => 'Nombre',
            'rules' => array('required', 'trim'),
        ),
        'telefono' => array(
            'label' => 'Teléfono',
            'rules' => array('trim'),
        ),
        'direccion' => array(
            'label' => 'Dirección',
            'rules' => array('trim'),
        )
    );

	public function __construct($id = null)
	{
		parent::__construct($id);
	}
}

// End of file proveedor.php
/* Location ./application/models/proveedor.php */